package training.haritha;

public class HelloWorldHaritha {

	private String name;

	public HelloWorldHaritha() {
		System.out.println("1. Constructor without arguments");
	}

	public HelloWorldHaritha(String name) {
		this();
		this.name = name;

	}

	public HelloWorldHaritha(String firstName, String lastName) {
		this(firstName);
		this.name = firstName;

	}

	public void sayHello() {
		System.out.println("2.Hello World say hello no arguments " + name);
	}

	public void sayHello(String name) {
		System.out.println("3.Hello World " + name);
	}

	public String sayGoodMorning(String name) {
		
		return "4.Good morning " + name;
	}

	public String sayGoodEvening(String firstName, String lastName) {

		return "5.Good evening " + firstName + "  " + lastName;
	}

	public static void main(String[] args) {

		HelloWorldHaritha world = new HelloWorldHaritha("(main)Hello World");
		world.sayHello();

		world.sayHello("Say Hello");

		System.out.println(world.sayGoodMorning("(fnu)Haritha"));

		System.out.println(world
				.sayGoodEvening("(fnu+lnu)Haritha", "Mandanapu"));

	}

}
